/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.safetytask.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


@ApiModel(value = "自定义表单数据", description = "自定义表单数据实体类")
public class CustomFormData extends BaseEntity {

    @ApiModelProperty(name = "tbaleCode", value = "表格code" )
    private String tbaleCode;

    @ApiModelProperty(name = "businessId", value = "使用表格的业务id" )
    private String businessId;

    @ApiModelProperty(name = "keyId", value = "字段id" )
    private String keyId;

    @ApiModelProperty(name = "keyValue", value = "value" )
    private String keyValue;

    @ApiModelProperty(name = "rowId", value = "表格行id" )
    private Integer rowId;

    // 字段code
    private String keyCode;

    public CustomFormData() {
    }

    public CustomFormData(String tbaleCode, String businessId) {
        this.tbaleCode = tbaleCode;
        this.businessId = businessId;
    }

    public CustomFormData(String tbaleCode, String keyId, String keyValue, Integer rowId, String keyCode) {
        this.tbaleCode = tbaleCode;
        this.keyId = keyId;
        this.keyValue = keyValue;
        this.rowId = rowId;
        this.keyCode = keyCode;
    }

    public CustomFormData(Integer rowId, String tbaleCode, String keyId, String keyValue) {
        this.rowId = rowId;
        this.tbaleCode = tbaleCode;
        this.keyId = keyId;
        this.keyValue = keyValue;
    }
    public CustomFormData(String tbaleCode, String keyId, String keyValue) {
        this.tbaleCode = tbaleCode;
        this.keyId = keyId;
        this.keyValue = keyValue;
    }

    public String getTbaleCode() {
        return tbaleCode;
    }

    public void setTbaleCode(String tbaleCode) {
        this.tbaleCode = tbaleCode;
    }

    public String getKeyId() {
        return keyId;
    }

    public void setKeyId(String keyId) {
        this.keyId = keyId;
    }

    public String getKeyValue() {
        return keyValue;
    }

    public void setKeyValue(String keyValue) {
        this.keyValue = keyValue;
    }

    public Integer getRowId() {
        return rowId;
    }

    public void setRowId(Integer rowId) {
        this.rowId = rowId;
    }

    public String getKeyCode() {
        return keyCode;
    }

    public void setKeyCode(String keyCode) {
        this.keyCode = keyCode;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    @Override
    public String toString() {
        return "CustomFormData{" +
                "tbaleCode='" + tbaleCode + '\'' +
                ", businessId='" + businessId + '\'' +
                ", keyId='" + keyId + '\'' +
                ", keyValue='" + keyValue + '\'' +
                ", rowId=" + rowId +
                ", keyCode='" + keyCode + '\'' +
                '}';
    }
}
